package com.gitee.hongruisun.promotion;

import java.util.HashMap;
import java.util.Map;

/**
 * 领导类
 */
public class Leader {
    private static Map<String,IEmployee> map = new HashMap();
    static {
        map.put("C语言",new EmployeeA());
        map.put("Java语言",new EmployeeB());
    }

    public String doing(String command){
       IEmployee iEmployee = map.get(command);
       return iEmployee.doing(command);
    }
}
